<?php 
namespace app\api\controller\v1;
use app\api\service\ContactService;

class Contact extends Base {
    
    protected $service;
    public function __construct(ContactService $service)
    {
        parent::__construct();
        $this->service = $service;
    }

    // 显示
    public function index($id) {
        return $this->service->one($id);
    }

    // 更新
    public function save() {
        return $this->service->save();
    }
}